package com.example.yls.demoa;

import android.os.Binder;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by yls on 2018/12/17.
 */

public class MyBinder extends Binder {
    public String reverse(String tet) {
        String[] strs = tet.split(" ");
        StringBuffer resultBuffer = new StringBuffer();
        for(String str:strs) {
            StringBuffer wordBuffer = new StringBuffer(str);
            resultBuffer.append(wordBuffer.reverse().append(" "));
        }
        return resultBuffer.toString();
    }
    /*public int add(int a, int b){
        return a + b;
    }

    // 显示当前日期  年月日时分秒
    public String getTime(){
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return format.format(date);
    }*/

}
